package com.doupi.partner.manager.authenticator.util;

import com.doupi.partner.util.RedisUtils;
import com.doupi.partner.util.SpringContextUtils;

/**
 * 获取缓存工具
 * 
 * @author Alvin Wang
 * @version 1.0.0 on 2017-04-04
 */
public class RedisManagerUtils {
	private static RedisUtils redisUtils;

	public static RedisUtils getRedisUtils() {
		if (redisUtils == null) {
			redisUtils = SpringContextUtils.getBeanByClass(RedisUtils.class);
		}
		return redisUtils;
	}
}
